﻿using System;
using System.Collections.Generic;
using System.Text;

namespace _11红绿灯状态模式
{
    class RedLightState : LightState
    {
        public RedLightState(TrafficLight light)
        {
            this.light = light;
        }
        public override void Handle()
        {
            Console.WriteLine("红灯状态");
            light.State = new GreenLightState(light);
            throw new NotImplementedException();
        }
    }
}
